package linkedList;

import java.util.LinkedList;

public class Test {
    public static void main1(String[] args) {
        MyLinkedList myLinkedList = new MyLinkedList();
        myLinkedList.addFirst(1);
        myLinkedList.addFirst(2);
        myLinkedList.addFirst(3);
        myLinkedList.addFirst(4);
        myLinkedList.addFirst(5);
        myLinkedList.display();
        System.out.println(myLinkedList.size());

        myLinkedList.addLast(9);
        myLinkedList.display();

        myLinkedList.addIndex(2,55);
        myLinkedList.remove(5);
        myLinkedList.display();
    }

    public static void main(String[] args) {
        LinkedList<Integer> list = new LinkedList<>();


    }
}
